code repo connnect test
[shlib.git] / testing / 2.scripttest_testing.Testing for scripttest.unit / 2.scripttest_general1.Testing paramter set 1.dir / 6.scripttest_param_p.sh.Paramter -p print variable in scripttest.txt
blob6c222d6ddc4f95c21bde5a4820bd63dee1f082ea
1 \e[27m./6.scripttest_param_p.sh
2 XXX
3 ================================
4 \e[27mprintf vars in scripttest!
5 ##########################
6 p_prog=
7 p_progdesc=
8 p_shortparam=|l|S:|n:|L|F|r|a|A|t:|b:|e:|x:|R|B|s|c|u|v|q|f|j:|d:|O:|p|m|g|V|h
9 p_longparam=|list|save:|num:|failed-begin|failed|ignor-err|all|test:|begin:|end:|exclude:|rollup|rollback|set|clean|update|verbose|quiet|force|multi-task:|dir:|output-dir:|print-vars|mono|logfile|version|help|debug
10 p_cmdparam=|all
11 p_pcnt=43
12 # [0]
13   p_char[0]=
14   p_longopt[0]=
15   p_cmd[0]=
16   p_value[0]=
17   p_name[0]=
18   p_proc[0]=
19   p_desc[0]="Design File Auto Gen Paramters:"
20 # [1]
21   p_char[1]=l
22   p_longopt[1]=list
23   p_cmd[1]=
24   p_value[1]=
25   p_name[1]=list_test_list
26   p_proc[1]=args_list_item
27   p_desc[1]="list items and dirs under testing dir."
28 # [2]
29   p_char[2]=S:
30   p_longopt[2]=save
31   p_cmd[2]=
32   p_value[2]=save_desc_file
33   p_name[2]=save_desc_file
34   p_proc[2]=args_save_catalog
35   p_desc[2]="generate catalog from testing dir. if the catalog file is exist, just display desc info only. append -f option to recover an original catalog file. "
36 # [3]
37   p_char[3]=
38   p_longopt[3]=
39   p_cmd[3]=
40   p_value[3]=
41   p_name[3]=
42   p_proc[3]=
43   p_desc[3]=""
44 # [4]
45   p_char[4]=
46   p_longopt[4]=
47   p_cmd[4]=
48   p_value[4]=
49   p_name[4]=
50   p_proc[4]=
51   p_desc[4]="General Testing Paramters:"
52 # [5]
53   p_char[5]=n:
54   p_longopt[5]=num
55   p_cmd[5]=
56   p_value[5]=test_cnt_num
57   p_name[5]=test_cnt_num
58   p_proc[5]=
59   p_desc[5]="running N test items continously."
60 # [6]
61   p_char[6]=L
62   p_longopt[6]=failed-begin
63   p_cmd[6]=
64   p_value[6]=
65   p_name[6]=failed_begin
66   p_proc[6]=
67   p_desc[6]="从failed列表中的第一项开始测试。"
68 # [7]
69   p_char[7]=F
70   p_longopt[7]=failed
71   p_cmd[7]=
72   p_value[7]=
73   p_name[7]=failed_test
74   p_proc[7]=args_failed_test
75   p_desc[7]="test the failed items listed by -a option. it"
76 # [8]
77   p_char[8]=r
78   p_longopt[8]=ignor-err
79   p_cmd[8]=
80   p_value[8]=
81   p_name[8]=test_ignor_err
82   p_proc[8]=
83   p_desc[8]="ignor testing error, and running continously."
84 # [9]
85   p_char[9]=a
86   p_longopt[9]=all
87   p_cmd[9]=all
88   p_value[9]=
89   p_name[9]=test_all
90   p_proc[9]=
91   p_desc[9]="test for all."
92 # [10]
93   p_char[10]=A
94   p_longopt[10]=
95   p_cmd[10]=
96   p_value[10]=
97   p_name[10]=continouse_all
98   p_proc[10]=args_all
99   p_desc[10]="test for all with -r -q option."
100 # [11]
101   p_char[11]=
102   p_longopt[11]=
103   p_cmd[11]=
104   p_value[11]=
105   p_name[11]=
106   p_proc[11]=
107   p_desc[11]=""
108 # [12]
109   p_char[12]=
110   p_longopt[12]=
111   p_cmd[12]=
112   p_value[12]=
113   p_name[12]=
114   p_proc[12]=
115   p_desc[12]="Testing Range Paramters:"
116 # [13]
117   p_char[13]=t:
118   p_longopt[13]=test
119   p_cmd[13]=
120   p_value[13]=test_id
121   p_name[13]=test_id
122   p_proc[13]=args_test_id
123   p_desc[13]="test a specified item by test item id.the id can be a dir id, that means test the items under the dir. if no id specified, it will test from the beginning id of normal testing."
124 # [14]
125   p_char[14]=b:
126   p_longopt[14]=begin
127   p_cmd[14]=
128   p_value[14]=begin_test_id
129   p_name[14]=begin_test_id
130   p_proc[14]=
131   p_desc[14]="begin id of testing range."
132 # [15]
133   p_char[15]=e:
134   p_longopt[15]=end
135   p_cmd[15]=
136   p_value[15]=end_test_id
137   p_name[15]=end_test_id
138   p_proc[15]=
139   p_desc[15]="end id of the testing range."
140 # [16]
141   p_char[16]=x:
142   p_longopt[16]=exclude
143   p_cmd[16]=
144   p_value[16]=exclude_id
145   p_name[16]=exclude_id
146   p_proc[16]=args_exclude
147   p_desc[16]="exclude id that should not be tested."
148 # [17]
149   p_char[17]=R
150   p_longopt[17]=rollup
151   p_cmd[17]=
152   p_value[17]=
153   p_name[17]=test_id_rollup
154   p_proc[17]=
155   p_desc[17]="rollup begin id, if the corresponding item is ok."
156 # [18]
157   p_char[18]=B
158   p_longopt[18]=rollback
159   p_cmd[18]=
160   p_value[18]=
161   p_name[18]=test_id_rollback
162   p_proc[18]=
163   p_desc[18]="rollback begin id to the previous value. it is not simplly decrease the count of id, it will check the test item file first."
164 # [19]
165   p_char[19]=s
166   p_longopt[19]=set
167   p_cmd[19]=
168   p_value[19]=
169   p_name[19]=set_test_info
170   p_proc[19]=
171   p_desc[19]="save the range setted by -b and -e and -x option."
172 # [20]
173   p_char[20]=c
174   p_longopt[20]=clean
175   p_cmd[20]=
176   p_value[20]=
177   p_name[20]=clean
178   p_proc[20]=args_clean
179   p_desc[20]="clean testing temp dir."
180 # [21]
181   p_char[21]=
182   p_longopt[21]=
183   p_cmd[21]=
184   p_value[21]=
185   p_name[21]=
186   p_proc[21]=
187   p_desc[21]=""
188 # [22]
189   p_char[22]=
190   p_longopt[22]=
191   p_cmd[22]=
192   p_value[22]=
193   p_name[22]=
194   p_proc[22]=
195   p_desc[22]="Testing Output Info Paramters:"
196 # [23]
197   p_char[23]=u
198   p_longopt[23]=update
199   p_cmd[23]=
200   p_value[23]=
201   p_name[23]=update_test_file
202   p_proc[23]=
203   p_desc[23]="if the current test item is ok, save stdout output to test item as the standard output content."
204 # [24]
205   p_char[24]=v
206   p_longopt[24]=verbose
207   p_cmd[24]=
208   p_value[24]=
209   p_name[24]=verbose
210   p_proc[24]=args_verbose
211   p_desc[24]="output the test script outputed with "
212 # [25]
213   p_char[25]=q
214   p_longopt[25]=quiet
215   p_cmd[25]=
216   p_value[25]=
217   p_name[25]=quiet
218   p_proc[25]=
219   p_desc[25]="disable comparation string output. but it is not conflect with -v option. use -v -q means output detail string info instead of comparation string."
220 # [26]
221   p_char[26]=
222   p_longopt[26]=
223   p_cmd[26]=
224   p_value[26]=
225   p_name[26]=
226   p_proc[26]=
227   p_desc[26]=""
228 # [27]
229   p_char[27]=
230   p_longopt[27]=
231   p_cmd[27]=
232   p_value[27]=
233   p_name[27]=
234   p_proc[27]=
235   p_desc[27]="Misc Paramters:"
236 # [28]
237   p_char[28]=f
238   p_longopt[28]=force
239   p_cmd[28]=
240   p_value[28]=
241   p_name[28]=test_force
242   p_proc[28]=
243   p_desc[28]="force operation option. it"
244 # [29]
245   p_char[29]=j:
246   p_longopt[29]=multi-task
247   p_cmd[29]=
248   p_value[29]=multi_task
249   p_name[29]=multi_task
250   p_proc[29]=
251   p_desc[29]="multi-task running. set the parall num of tasks."
252 # [30]
253   p_char[30]=
254   p_longopt[30]=
255   p_cmd[30]=
256   p_value[30]=
257   p_name[30]=
258   p_proc[30]=
259   p_desc[30]=""
260 # [31]
261   p_char[31]=
262   p_longopt[31]=
263   p_cmd[31]=
264   p_value[31]=
265   p_name[31]=
266   p_proc[31]=
267   p_desc[31]="Other Paramters:"
268 # [32]
269   p_char[32]=d:
270   p_longopt[32]=dir
271   p_cmd[32]=
272   p_value[32]=test_dir
273   p_name[32]=test_dir
274   p_proc[32]=
275   p_desc[32]="指定测试信息的目录。默认值为当前目录下的testing目录。"
276 # [33]
277   p_char[33]=O:
278   p_longopt[33]=output-dir
279   p_cmd[33]=
280   p_value[33]=output_dir
281   p_name[33]=output_dir
282   p_proc[33]=
283   p_desc[33]="指定测试时的临时文件目录。默认值为~/用户目录下的.testing目录。"
284 # [34]
285   p_char[34]=p
286   p_longopt[34]=print-vars
287   p_cmd[34]=
288   p_value[34]=
289   p_name[34]=print_vars
290   p_proc[34]=args_print_vars
291   p_desc[34]="输出参数定义的变量信息。"
292 # [35]
293   p_char[35]=m
294   p_longopt[35]=mono
295   p_cmd[35]=
296   p_value[35]=
297   p_name[35]=mono
298   p_proc[35]=args_mono
299   p_desc[35]="输出非彩色的字符串信息。"
300 # [36]
301   p_char[36]=g
302   p_longopt[36]=logfile
303   p_cmd[36]=
304   p_value[36]=
305   p_name[36]=test_logfile
306   p_proc[36]=test_logfile
307   p_desc[36]="测试failed时,不输出差异信息。"
308 # [37]
309   p_char[37]=
310   p_longopt[37]=
311   p_cmd[37]=
312   p_value[37]=
313   p_name[37]=
314   p_proc[37]=
315   p_desc[37]=""
316 # [38]
317   p_char[38]=
318   p_longopt[38]=
319   p_cmd[38]=
320   p_value[38]=
321   p_name[38]=
322   p_proc[38]=
323   p_desc[38]="Version & Helper & Debug:"
324 # [39]
325   p_char[39]=V
326   p_longopt[39]=version
327   p_cmd[39]=
328   p_value[39]=
329   p_name[39]=version_info
330   p_proc[39]=args_version
331   p_desc[39]="output version info of the program."
332 # [40]
333   p_char[40]=h
334   p_longopt[40]=
335   p_cmd[40]=
336   p_value[40]=
337   p_name[40]=h_info
338   p_proc[40]=args_h_info
339   p_desc[40]="simplly helper doc only for option."
340 # [41]
341   p_char[41]=
342   p_longopt[41]=help
343   p_cmd[41]=
344   p_value[41]=
345   p_name[41]=help_info
346   p_proc[41]=args_help_info
347   p_desc[41]="this helper doc."
348 # [42]
349   p_char[42]=
350   p_longopt[42]=debug
351   p_cmd[42]=
352   p_value[42]=
353   p_name[42]=test_debug
354   p_proc[42]=args_test_debug
355   p_desc[42]="debug info for arguments dispatch. add the option follow with cmd."
356 pname_width=30
357 pname_blanks=1
358 desc_blanks=1
359 term_width=80
360 Design File Auto Gen Paramters:
361  -l, --list                    list items and dirs under testing dir.
362  -S, --save=<save_desc_file>   generate catalog from testing dir. if the 
363                                catalog file is exist, just display desc info 
364                                only. append -f option to recover an original 
365                                catalog file. 
367 General Testing Paramters:
368  -n, --num=<test_cnt_num>      running N test items continously.
369  -L, --failed-begin            从failed列表中的第一项开始测试。
370  -F, --failed                  test the failed items listed by -a option. it
371  -r, --ignor-err               ignor testing error, and running continously.
372  -a, all, --all                test for all.
373  -A                            test for all with -r -q option.
375 Testing Range Paramters:
376  -t, --test=<test_id>          test a specified item by test item id.the id can 
377                                be a dir id, that means test the items under the 
378                                dir. if no id specified, it will test from the 
379                                beginning id of normal testing.
380  -b, --begin=<begin_test_id>   begin id of testing range.
381  -e, --end=<end_test_id>       end id of the testing range.
382  -x, --exclude=<exclude_id>    exclude id that should not be tested.
383  -R, --rollup                  rollup begin id, if the corresponding item is ok.
384  -B, --rollback                rollback begin id to the previous value. it is 
385                                not simplly decrease the count of id, it will 
386                                check the test item file first.
387  -s, --set                     save the range setted by -b and -e and -x option.
388  -c, --clean                   clean testing temp dir.
390 Testing Output Info Paramters:
391  -u, --update                  if the current test item is ok, save stdout 
392                                output to test item as the standard output 
393                                content.
394  -v, --verbose                 output the test script outputed with 
395  -q, --quiet                   disable comparation string output. but it is not 
396                                conflect with -v option. use -v -q means output 
397                                detail string info instead of comparation string.
399 Misc Paramters:
400  -f, --force                   force operation option. it
401  -j, --multi-task=<multi_task> multi-task running. set the parall num of tasks.
403 Other Paramters:
404  -d, --dir=<test_dir>          指定测试信息的目录。默认值为当前目录下的testing目
405                                录。
406  -O, --output-dir=<output_dir> 指定测试时的临时文件目录。默认值为~/用户目录下的.
407                                testing目录。
408  -p, --print-vars              输出参数定义的变量信息。
409  -m, --mono                    输出非彩色的字符串信息。
410  -g, --logfile                 测试failed时,不输出差异信息。
412 Version & Helper & Debug:
413  -V, --version                 output version info of the program.
414  -h                            simplly helper doc only for option.
415      --help                    this helper doc.
416      --debug                   debug info for arguments dispatch. add the 
417                                option follow with cmd.
418 ##########################
419 ================================